package com.example.check_oa.model.mapper;

import com.example.comment_oa.pojos.attendance.BusinessTripAp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.comment_oa.pojos.SysEmployee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author cjl
* @description 针对表【business_trip_ap】的数据库操作Mapper
* @createDate 2022-10-22 10:45:03
* @Entity com.example.check_oa.model.pojo.BusinessTripAp
*/
@Mapper
public interface BusinessTripApMapper extends BaseMapper<BusinessTripAp> {
    //获取当月出差天数
    int allMouthBussnessDay(@Param("mouth") String mouth,@Param("userNo") String userNo);
    //获取出差集合
    List<BusinessTripAp> selectAll(@Param("userNo")String userNo,@Param("is")int is);
    //员工工号查员工
    SysEmployee selectByEmpCard(@Param("userNo")String userNo);
    //查询在职员工
    List<SysEmployee> selectEmp();
    //查看今天出差
    List<BusinessTripAp> selectBusiOneDate(@Param("day")String day,@Param("userNo")String userNo);
    //id and endTime
    List<BusinessTripAp> byIdEnd(@Param("id")int id,@Param("end")String end);
}




